package com.llianejapan;

import com.llianejapan.R;

import android.app.Activity;
import android.os.Bundle;
import android.os.Debug;
import android.util.Log;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class WV extends Activity{
	WebView webview;
	//Special client
    private class LlianeWebViewClient extends WebViewClient {
            @Override
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
                    view.loadUrl(url);
                    return true;
            }
    }

	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.wv);	
		setTitle("Kanji Informtion");
		webview = (WebView) findViewById(R.id.webkit);
		webview.getSettings().setJavaScriptEnabled(true);
		webview.setWebViewClient(new LlianeWebViewClient());
		webview.loadUrl(LlianeGlobal.wvurl);
		//webview.loadUrl("http://www.team-aaa.com");
		Log.d("lol", LlianeGlobal.wvurl);
	}
}
